home *** CD-ROM | disk | FTP | other *** search
- .Model Large,Pascal
- .Code
- .386
-
- Charset db 8192 dup(?) ;; the character set to use
-
-
-
- Public SetCharSet
-
- Proc SetCharSet ;; Sets the New character set
- Mov dx,$03c4
- Mov ax,$0402;
- Out dx,ax
- Mov ax,$0704;
- Out dx,ax
- Mov dx,$03ce
- Mov ax,$0204;
- Out dx,ax
- Mov ax,$0005;
- Out dx,ax
- Mov ax,$0006;
- Out dx,ax
-
- Push ds
- Mov ax,cs
- Mov ds,cs
- Mov si,Offset CharSet
- Mov ax,$A000
- Mov es,ax
- Mov dx,0
-
- @Looper1:
- Mov di,dx
- Shl di,5
- Add di,0a000h ;; Add offset of charset #6
- Mov cx,4
- db 66h; Rep Movsw { Rep Movsd }
- Inc dx
- Cmp dx,256
- Jnz @Looper1
-
- Mov dx,0 ; Do next 256 characters
- @Looper2:
- Mov di,dx
- Shl di,5
- Add di,0e000h ;; Add offset of charset #6
- Mov cx,4
- db 66h; Rep Movsw { Rep Movsd }
- Inc dx
- Cmp dx,256
- Jnz @Looper2
-
- Mov dx,$03c4
- Mov ax,$0302;
- Out dx,ax
- Mov ax,$0304;
- Out dx,ax
- Mov dx,$03ce
- Mov ax,$0004;
- Out dx,ax
- Mov ax,$1005;
- Out dx,ax
- Mov ax,$0e06;
- Out dx,ax
-
- Ret
- EndP SetCharSet
-
- Public PutPixel
-
- Proc PutPixel Uses es di,X:Word,Y:Word
-
- Ret
- EndP PutPixel
-